Skip to content

Add RAK11200 / RAK13300 variant#1925

Open
weebl2000 wants to merge 7 commits intomeshcore-dev:devfrom
weebl2000:ashinn/rak11200-support-rebased
Open

Add RAK11200 / RAK13300 variant#1925
weebl2000 wants to merge 7 commits intomeshcore-dev:devfrom
weebl2000:ashinn/rak11200-support-rebased

Conversation

@weebl2000
Copy link
Contributor

@weebl2000 weebl2000 commented Mar 5, 2026

Supersedes PR #800

@zenire @andyshinn please test this firmware:

This PR can be closed if andyshinn#1 is merged Original PR closed in favor of this one.

This fw is tested and works.

andyshinn and others added 6 commits March 5, 2026 03:28
- Fix I2C pins in variant.h (GPIO21/22 → GPIO4/5 per datasheet)
- Fix GPS UART pins in platformio.ini (UART0 1/3 → UART1 21/19)
- Fix radio_set_tx_power signature (uint8_t → int8_t)
- Remove conflicting duplicate defines between variant.h and Board.h
(P_LORA_BUSY was RADIOLIB_NC vs 13, ADC_MULTIPLIER was 1.85 vs 5761)
- Remove stale LoRa/WisBlock defines from variant.h (Board.h is
authoritative)
- Remove "ethernet" and "can" from board JSON connectivity
- Use static SPIClass for radio init (matches Heltec V3 convention)
- Remove build_unflags=-Os (keep size optimization for 4MB flash)

Verified against RAK11200/RAK13300 datasheets
@andyshinn
Copy link

Seems to work. I flashed on mine locally.

@weebl2000
Copy link
Contributor Author

weebl2000 commented Mar 5, 2026

Seems to work. I flashed on mine locally.

Great, just added a wifi variant too. https://mcimages.weebl.me/?commitId=ashinn/rak11200-support-rebased&variant=RAK_11200_companion_radio_wifi

@weebl2000
Copy link
Contributor Author

weebl2000 commented Mar 5, 2026

@liamcottle @ripplebiz This PR supersedes #800 and addresses all comments that were made there. I've checked against RAK11200 and RAK13300 datasheets and am pretty sure all mappings are correct now. @andyshinn confirms it's working.

No clue how common this board is these days but the variant works.

Summary of changes made compared to #800

Pin corrections:

  • GPS TX/RX: 1/3 → 21/19 (correct UART1 pins per RAK11200 datasheet)
  • I2C SDA/SCL: 21/22 → 4/5 (correct I2C1 WisBlock connector pins)

Board code cleanup:

  • Removed getBattMilliVolts() override and ADC_MULTIPLIER define (uses base class)
  • Removed build_unflags = -Os / build_type = release

Header file (pins.h) simplified:

  • Removed duplicate LoRa pin defines (already set in platformio.ini)
  • Removed WisBlock GPIO mapping block (unused)
  • Removed GPS_POWER_TOGGLE define
  • Added datasheet reference comments

Radio code improved:

  • Conditional SPI: uses custom SPIClass when P_LORA_SCLK is defined, default SPI otherwise
  • radio_set_tx_power signature: uint8_t → int8_t

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants